import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: qian
 * Date: 2023-02-10
 * Time: 18:32
 */
public class test5 {
    public static void main(String[] args) throws IOException {
        //打开文件
        InputStream inputStream=new FileInputStream("./test.txt");

        while(true){
            int b=inputStream.read();
            if(b==-1){
                break;
            }
            System.out.println(b);
        }
        //文件关闭
        inputStream.close();

    }
}
